home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / text / tex / tex3141source.lha / site.h next >
C/C++ Source or Header  |  1993-02-28  |  5KB  |  145 lines

  1. /* Master configuration file for WEB to C.  Almost all the definitions
  2.    are wrapped with #ifndef's, so that you can override them from the
  3.    command line, if you want to.  */
  4.  
  5. #ifndef __WEB2C_SITE_H
  6. #define __WEB2C_SITE_H
  7.  
  8. /* Define if you're running under 4.2 or 4.3 BSD. 
  9. #ifndef BSD
  10. #define    BSD
  11. #endif
  12.  
  13. /* Define if you're running under System V. 
  14. #ifndef SYSV
  15. #undef    SYSV
  16. #endif
  17.  
  18. /* Define if you're running under MS-DOS with Microsoft C. 
  19. #ifndef MS_DOS
  20. #undef    MS_DOS
  21. #endif
  22.  
  23. */
  24.  
  25. /* Define this if the system will be compiled with an ANSI C compiler,
  26.    and never with a non-ANSI compiler.  It changes web2c so that it
  27.    produces ANSI C as its output.  This is a good idea, but you don't
  28.    necessarily gain anything in the production programs by doing it.  */
  29. #ifndef ANSI
  30. #define    ANSI
  31. #endif
  32.  
  33. /* Define these according to your local setup.  */
  34. #define    TEXINPUTS    ",TeX:inputs,Tex:inputs/standard,TeX:inputs/latex"
  35. #define    TEXFONTS    ",TeX:fonts"
  36. #define    TEXFORMATS    ",TeX:formats"
  37. #define    TEXPOOL        ",TeX:pool"
  38. #define    MFBASES        ",TeX:bases"
  39. #define    MFINPUTS    ",TeX:mfinputs"
  40. #define    MFPOOL        ",TeX:pool"
  41.  
  42. #define TEXCONFIG       ",TeX:config"
  43.  
  44. /* BibTeX search path for .bib files.  TEXINPUTS is used by BibTeX to
  45.    search for .bst files.  */
  46. #define    BIBINPUTS    ",TeX:bibinputs"
  47.  
  48. /* Metafont window support: More than one may be defined, as long as you
  49.    don't try to have both X10 and X11 support (because there are
  50.    conflicting routine names in the libraries).  After you've defined
  51.    these, make sure to update the top-level Makefile accordingly.  Also,
  52.    if you want X11 support, see the `Online output from Metafont'
  53.    section in ./README before compiling.  */
  54. #undef    SUNWIN            /* SunWindows support. */
  55. #undef    X10WIN            /* X Version 10 support. */
  56. #undef    X11WIN            /* X Version 11 support. */
  57. #undef    HP2627WIN        /* HP 2627 support. */
  58. #undef    TEKTRONIXWIN        /* Tektronix 4014 support. */
  59.  
  60. #if defined(X10WIN) && defined(X11WIN)
  61. sorry
  62. #endif
  63.  
  64. /* Default editor command string: %d expands to the line number where
  65.    TeX or Metafont found an error and %s expands to the name of the
  66.    file.  The environment variables TEXEDIT and MFEDIT override this.  */
  67. #define    EDITOR    "Memacs goto %d %s"
  68.  
  69. /* Define to be the return type of your signal handlers.  POSIX says it
  70.    should be `void', but some older systems want `int'.  Check your
  71.    <signal.h> include file if you're not sure.  */
  72. #ifndef SIGNAL_HANDLER_RETURN_TYPE
  73. #define SIGNAL_HANDLER_RETURN_TYPE void
  74. #endif
  75.  
  76. /* The type `glueratio' should be a floating point type which won't
  77.    unnecessarily increase the size of the memoryword structure.  This is
  78.    the basic requirement.  On most machines, if you're building a
  79.    normal-sized TeX, then glueratio must probably meet the following
  80.    restriction: sizeof(glueratio) <= sizeof(integer).  Usually, then,
  81.    glueratio must be `float'.  But if you build a big TeX, you can (on
  82.    most machines) and should make it `double' to avoid loss of precision
  83.    and conversions to and from double during calculations.  (All this
  84.    also goes for Metafont.)  Furthermore, if you have enough memory, it
  85.    won't hurt to have this defined for running the trip/trap tests.  */
  86. typedef double glueratio;
  87.  
  88. /* Define this if you want TeX to be compiled with local variables
  89.    declared as `register'.  On SunOS 3.2 and 3.4 (at least), compiling
  90.    with cc, this will cause problems.  If you're using gcc or the SunOS
  91.    4.x compiler, and compiling with -O, register declarations are
  92.    ignored, so there is no point in defining this.  */
  93. #ifndef REGFIX
  94. #undef    REGFIX
  95. #endif
  96.  
  97. /* If the type `int' is at least 32 bits (including a sign bit), this
  98.    symbol should be #undef'd; otherwise, it should be #define'd.  If
  99.    your compiler uses 16-bit int's, arrays larger than 32K may give you
  100.    problems, especially if indices are automatically cast to int's.  */
  101. #ifndef SIXTEENBIT
  102. #undef    SIXTEENBIT
  103. #endif
  104.  
  105. /* Our character set is 8-bit ASCII unless NONASCII is defined.  For
  106.    other character sets, make sure that first_text_char and
  107.    last_text_char are defined correctly (they're 0 and 255,
  108.    respectively, by default).  In the *.defines files, change the
  109.    indicated range of type `char' to be the same as
  110.    first_text_char..last_text_char, `#define NONASCII', and retangle and
  111.    recompile everything.  */
  112. #ifndef NONASCII
  113. #undef    NONASCII
  114. #endif
  115.  
  116. /* The type `schar' should be defined here to be the smallest signed
  117.    type available.  ANSI C compilers may need to use `signed char'.  If
  118.    you don't have signed characters, then define schar to be the type
  119.    `short'.  */
  120. typedef    signed char schar;
  121.  
  122. /* The type `integer' must be a signed integer capable of holding at
  123.    least the range of numbers (-2^31)..(2^32-1).  The ANSI C
  124.    standard says that `long' meets this requirement, but if you don't
  125.    have an ANSI C compiler, you might have to change this definition.  */
  126. typedef long integer;
  127.  
  128. /* Define MAXPATHLENGTH to be the maximum number of characters in a
  129.    search path.  This is used to size the buffers for the environment
  130.    variables.  It is good to be quite generous here.  */
  131. #ifndef MAXPATHLENGTH
  132. #define    MAXPATHLENGTH    5000
  133. #endif
  134.  
  135. #include "defaults.h"
  136.  
  137. #endif /* __WEB2C_H */
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.